package jk.framework.canary.core.po;

/**
 * 路由匹配结果
 * @author cuichao
 */
public class CanaryResponse<T> {

    /**
     * 数据源
     */
    private T source;

    /**
     * 灰度版本匹配结果
     */
    private boolean isMatchVersion;

    /**
     * 灰度结果
     */
    private boolean isAllow;


    public CanaryResponse(T source) {
        this.source = source;
    }


    public T getSource() {
        return source;
    }

    public boolean isMatchVersion() {
        return isMatchVersion;
    }

    public boolean isAllow() {
        return isAllow;
    }

    public void setMatchVersion(boolean matchVersion) {
        isMatchVersion = matchVersion;
    }

    public void setAllow(boolean allow) {
        isAllow = allow;
    }
}
